package com.design02_Structural.pattern07_bridging.example02;

import java.math.BigDecimal;

/**
 * @ClassName BridgingTest
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/4 22:43
 */
public class BridgingTest {


    public static void main(String[] args) {
        System.out.println("测试场景1: 微信支付、人脸方式.");
        Pay wxpay = new WxPay(new PayFaceMode());
        wxpay.transfer("wx_00100100","10001900",new BigDecimal(100));
        System.out.println();
        System.out.println("测试场景2: 支付宝支付、指纹方式");
        Pay zfbPay = new ZfbPay(new PayFingerprintMode());
        zfbPay.transfer("jlu1234567","567689999999",new BigDecimal(200));

        //测试场景1: 微信支付、人脸方式.
        //微信渠道支付划账开始......
        //人脸支付,风控校验-脸部识别
        //微信渠道支付风险校验: wx_00100100 , 10001900 , true
        //微信渠道划账成功! 金额: 100

        //测试场景2: 支付宝支付、指纹方式
        //支付宝渠道支付划账开始......
        //指纹支付,风控校验-指纹信息
        //支付宝渠道支付风险校验: jlu1234567, 567689999999 , true
        //支付宝渠道划账成功! 金额: 200

    }

}
